<template>
	<!-- 顶title条 -->
	<div class='indexTopWrap'>

		<!-- 栏目切换 -->
		<div class='switchBtn'>
			<label> &lt; </label>
			<span> &gt; </span>
		</div>

		<!-- 搜索音乐 -->
		<div class='searchMusic'>
			<input class='inputSearchMusic' type='text' placeholder='搜索音乐' title='输入关键字搜索' />
		</div>

		<!-- 听歌识曲 -->
		<div class='listenTosong' title='听歌识曲'></div>
		<div class="quit" @click="ck"> <span>退出</span> </div>
		<!-- 顶部，右侧按钮，右浮动 -->
		<div style='float:right;'>
			<!-- 用户头像、用户名 -->
			<div class='userAvatar_Name'>
				<label></label>
				<span>00feel</span>
			</div>

			<!-- level icon -->
			<div class='level_icon' title='尽享绿钻特权，彰显不一样的你'></div>

			<!-- 下箭头 -->
			<div class='arrow_down' title='用户信息'></div>

			<!-- 换肤 -->
			<div class='skin_icon' title='换肤'></div>

			<!-- 主菜单 -->
			<div class='menu_icon' title='主菜单'></div>

		</div>

	</div>
</template>

<script>
export default {

	data() {
		return {




		}
	},
	methods: {
		ck() {
			//删除本地存储中的数据
			localStorage.removeItem('用户名')
			localStorage.removeItem('密码')
			this.$router.push("/content");
		}
	}
}
</script>

<style scoped>
/* 退出登录 */
.quit {
	position: relative;
	top: 33px;
	left: 330px;
}

/*顶title条*/
.indexTopWrap {
	width: 100%;
	height: 60px;
	background: #f6f6f6;
}

/*栏目切换按钮*/
.indexTopWrap .switchBtn {
	width: auto;
	height: 60px;
	line-height: 60px;
	float: left;
	margin-left: 15px;
}

.indexTopWrap .switchBtn label,
.indexTopWrap .switchBtn span {
	color: #aeaeae;
	font-size: 20px;
	padding: 0 10px;
	cursor: pointer;
}

.indexTopWrap .switchBtn label:hover,
.indexTopWrap .switchBtn span:hover {
	color: #1fd4ae;
}

/*搜索音乐*/
.indexTopWrap .searchMusic {
	float: left;
	margin-left: 20px;
}

.searchMusic input.inputSearchMusic {
	width: 120px;
	height: 33px;
	background-color: #e3e3e3;
	border-radius: 50px;
	border: 0;
	margin-top: 15px;
	padding-left: 40px;

	background-size: 15px;
	background-repeat: no-repeat;
	background-position: 18px center;
	background-image: url('../资源/放大镜.png');

}

/* 听歌识曲 */
.listenTosong {
	width: 20px;
	height: 20px;
	float: left;
	margin: 22px 0 0 17px;
	cursor: pointer;

	background-size: 22px;
	background-repeat: no-repeat;
	background-position: center;
	background-image: url('../资源/听歌识曲.png');
}

.listenTosong:hover {
	background-image: url('../资源/听歌识曲2.png');
}

/*用户头像、用户名*/
.userAvatar_Name {
	height: 24px;
	float: left;
	margin: 19px 11px 0 0;
	cursor: pointer;
	top: -30px;
	position: relative;
}

.userAvatar_Name label {
	float: left;
	width: 24px;
	height: 24px;
	border-radius: 100%;
	margin: 0 12px 0 0;

	background-size: 24px;
	background-repeat: no-repeat;
	background-position: center;
	background-image: url('../资源/头像.png');
}

.userAvatar_Name span {
	float: left;
	width: 80px;
	height: 24px;
	line-height: 24px;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

/* level_icon */
.level_icon {
	width: 34px;
	height: 16px;
	float: left;
	background: url('../资源/level.png');
	margin: 22px 9px 0 0;
	cursor: pointer;
	top: -30px;
	position: relative;
}

/* 下箭头 */
.arrow_down {
	width: 14px;
	height: 12px;
	float: left;
	background-size: 22px;
	cursor: pointer;
	background-repeat: no-repeat;
	background-position: center;
	background-image: url('../资源/arrow_down.png');
	margin: 22px 15px 0 0;
	top: -30px;
	position: relative;
}

/*换肤*/
.skin_icon {
	width: 14px;
	height: 13px;
	float: left;
	background-size: 14px;
	cursor: pointer;
	background-repeat: no-repeat;
	background-position: center;
	background-image: url('../资源/skin_icon.png');
	margin: 24px 15px 0 0;
	top: -30px;
	position: relative;
}

/* 主菜单 */
.menu_icon {
	width: 15px;
	height: 13px;
	float: left;
	background-size: 14px;
	cursor: pointer;
	background-repeat: no-repeat;
	background-position: center;
	background-image: url('../资源/menu_icon.png');
	margin: 24px 15px 0 0;
	top: -30px;
	position: relative;
}
</style>